package com.imooc.service.impl;

import com.imooc.dataobject.SellerInfo;
import com.imooc.repository.SellerInfoRepository;
import com.imooc.service.SellerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class SellerServiceImpl implements SellerService {

    @Autowired
    // 调用的都是 dao 的方法
    private SellerInfoRepository repository;


    @Override
    public SellerInfo findSellerInfoByOpenid( String openid) {
        return repository.findByOpenid(openid);

    }
}
